package com.Darkra1Zzz.dao;

import com.Darkra1Zzz.entity.Album;
import com.Darkra1Zzz.entity.Singer;
import com.Darkra1Zzz.entity.Song;
import com.Darkra1Zzz.entity.Type;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AlbumDao {
    public boolean insert(Album album);
    public boolean delete(int id);
    public int update(Album album);
    public List<Album> findAllAlbum();
    public List<Album> findAlbumList
            (@Param("id") Integer id, @Param("name") String naem, @Param("date") String date,
             @Param("singer") Singer singer, @Param("imageurl") String imageurl, @Param("type")Type type, @Param("playcount") Integer playcount,
             @Param("sumsong") Integer sumsong, @Param("price") Integer price, @Param("albuminfo") String albuminfo, @Param("songList")List<Song> songList ,@Param("currentPage")Integer currentPage, @Param("pageSize")Integer pageSize);

    public int countAllType(Album album);

}
